package com.itheima.iojob4;

import java.io.FileReader;
import java.io.IOException;

public class Test {
    public static void main(String[] args) {
        try
          (  FileReader fr = new FileReader("E:/test/file01.txt");)
        {int len;
            while((len=fr.read())!=-1){
                System.out.print((char) len);
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
